how to calculate amplitude - Search